#include "interface_mdle.h"
#include "ui_interface_mdle.h"

interface_mdle::interface_mdle(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::interface_mdle)
{
    ui->setupUi(this);
    // --------------------------------------------
    // 创建IO
    table = new QTableWidgetSave(8,4,this);
    ui->layout_table->addWidget(table);
    // --------------------------------------------
    // 创建IO的基本信息
    table->setItem(1-1, 1-1, new QTableWidgetItem(QString("itf_name")));
    table->setItem(1-1, 2-1, new QTableWidgetItem(QString("interface")));
    table->setItem(2-1, 1-1, new QTableWidgetItem(QString("itf_code")));
    table->setItem(2-1, 2-1, new QTableWidgetItem(QString("00000000")));
    table->setItem(3-1, 1-1, new QTableWidgetItem(QString("site_x0")));
    table->setItem(3-1, 2-1, new QTableWidgetItem(QString("1")));
    table->setItem(4-1, 1-1, new QTableWidgetItem(QString("site_y0")));
    table->setItem(4-1, 2-1, new QTableWidgetItem(QString("1")));
    table->setItem(5-1, 1-1, new QTableWidgetItem(QString("itf_type")));
    table->setItem(5-1, 2-1, new QTableWidgetItem(QString("output")));

}

interface_mdle::~interface_mdle()
{
    delete ui;
}
